package com.baogu.factoryjob.service.remote;

import com.baogu.model.common.HttpResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "baogu-database")
public interface SensordataRemoteService {

    @RequestMapping(method = RequestMethod.GET,value = "/sensordata/getNewSensorData")
    public HttpResult getNewSensorData();


    @RequestMapping(method = RequestMethod.GET,value = "/sensordata/completeImpSensorData/{vsion}")
    public HttpResult completeImpSensorData(@RequestParam("vsion") String vsion);

    @RequestMapping(method = RequestMethod.GET,value = "/sensordata/getSensorDataListByVsion/{vsion}/{tableDate}")
    public HttpResult getSensorDataListByVsion(@RequestParam("vsion") String vsion,@RequestParam("tableDate") String tableDate);
}
